#define  _CRT_SECURE_NO_WARNINGS
#include"string.h"

namespace bit
{
	void test01()
	{
		//bit::string s;
		//bit::string s1("hello world");
		//string s2(s1);
		//string::const_iterator it = s1.begin();
		//while (it != s1.end())
		//{
		//	//(*it)++;
		//	it++;
		//}
		//cout << endl;
		//for (auto ch : s1)
		//{
		//	cout << ch << ' ';
		//}
		//for (int i = 0; i < s1.size(); i++)
		//{
		//	cout << s1[i] << ' ';
		//}
		//s1.reserve(20);
		//s1 += ('x');
		//
		//s1 += ("hello bit 00 !");
		//s1.pop_back();
		//cout << s1 << endl;

		bit::string s3("hello");
		bit::string ret("bit");
		//ret = s3.substr(1, 2);
		//ret = s3;
		//getline(cin, s3,'!');
		s3.resize(10);
		cout << s3 << endl;
	}
}
int main()
{
	bit::test01();
	return 0;
}



